package com.hades.example.java.refactoring.after.c10.c10_12_replace_constructor_with_factory_method._1;

public class Example {
    public static void main(String[] args) {
        Employee employee = Employee.create(Employee.ENGINEER);
        Employee employee2 = Employee.create(Employee.SALES_MAN);
        Employee employee3 = Employee.create(Employee.MANAGER);

        System.out.println(employee.getClass().getSimpleName());
        System.out.println(employee2.getClass().getSimpleName());
        System.out.println(employee3.getClass().getSimpleName());

        System.out.println(employee.maxNum());
        System.out.println(employee2.maxNum());
        System.out.println(employee3.maxNum());
    }
}
